home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Graphismes / 3D / POV-Ray 3.0B5a PPC / POV-Ray 3.0B5a / POVSCN.Scenes / POVSCN / LEVEL2 / CRYSTAL.POV < prev    next >
Text File  |  1995-11-08  |  2KB  |  79 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // A synthetic photograph by Dan Farmer
  3. //---------------------------------------------------------------------------
  4. // This scene file was designed to emulate the digitized photographic image
  5. // of a crystal sphere { on a checkerboard that David Buck took, and to
  6. // verify or refute the correctness of the current refractive functions
  7. // in POV-Ray.  The original image is available on CompuServe
  8. // (GO GRAPHDEV), by the name of crysta.gif.
  9. //---------------------------------------------------------------------------
  10.  
  11. #include "colors.inc"
  12. #include "shapes.inc"
  13. #include "textures.inc"
  14.  
  15. #version 3.0
  16. global_settings { assumed_gamma 2.2 }
  17.  
  18. camera {
  19.    location <-0.85, 12.5, -28>
  20.    direction <0, 0, 4.125>
  21.    up  <0, 1, 0>
  22.    right <4/3, 0, 0>
  23.    look_at <0.25, 0.15, 0>
  24.  
  25.  
  26. }
  27.  
  28. light_source { <-5, 50, -5> colour red 0.85 green 0.85 blue 0.85 }
  29. light_source { <-500, 500, -500> colour DimGray }
  30. // light (under checkerboard, for background
  31. light_source { <10, -50, 5> colour White }
  32.  
  33. // The background.  Designed to give the shaded quality of the photo
  34. sphere { <0, 0, 0>, 1
  35.    scale <10000, 500, 500>
  36.    rotate 60*y
  37.  
  38.    finish {
  39.       ambient 0.2
  40.       diffuse 0.75
  41.       crand 0.025
  42.    }
  43.    pigment { color Gray }
  44. }
  45.  
  46. union {
  47.    object { Cube
  48.       scale <5, 0.001, 7>
  49.  
  50.       pigment {
  51.          checker color Black color White
  52.          translate <1, 0, 7>
  53.       }
  54.       finish {
  55.          ambient 0.35
  56.          diffuse 0.65
  57.          crand 0.015
  58.       }
  59.    }
  60.  
  61.    sphere { <-0.25, 2.15,-4.25>, 2.15
  62.       pigment { White filter 0.95 }
  63.       finish {
  64.          ambient 0.2
  65.          diffuse 0.0
  66.          reflection 0.12
  67.          refraction on
  68.          ior 1.45
  69.          specular 1.0
  70.          roughness 0.001
  71.          fade_distance 2
  72.          fade_power 2
  73.          caustics 2.0
  74.       }
  75.    }
  76.  
  77.    rotate -6*z       /* Simulate the slight camera tilt in the photo */
  78. }
  79.